<?php
class models_timkiem extends connect{
	function _timMatHang($value){
		$sql = "SELECT TenMH, SoLuong FROM mathang WHERE TenMH LIKE '%$value%'";
		$this->query_db($sql);
		return $this->fetchAll();
	}
	function _timKhachHang($value){
		$sql = "SELECT TenKH, DiaChi FROM khachhang WHERE TenKH LIKE '%$value%'";
		$this->query_db($sql);
		$this->fetchAll();
	} 
}